package com.infoauto.opc.gateway.service.impl;

import com.infoauto.opc.gateway.dao.CheckTheProcessDao;
import com.infoauto.opc.gateway.model.gtm4.CheckTheProcess;
import com.infoauto.opc.gateway.service.CheckTheProcessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 检查工序
 */
@Service
public class CheckTheProcessServiceImpl implements CheckTheProcessService {
    @Autowired
    private CheckTheProcessDao dao;


    @Override
    public int insert(CheckTheProcess checkTheProcess) {
        return dao.insert(checkTheProcess);
    }

    @Override
    public int update(CheckTheProcess checkTheProcess) {
        return dao.update(checkTheProcess);
    }

    @Override
    public List<CheckTheProcess> selectByProducTionTimeAndShift(String productionTime, Integer shift) {
        return dao.selectByProducTionTimeAndShift(productionTime,shift);
    }

    @Override
    public CheckTheProcess select(String productionTime, Integer shift, Integer sn) {
        return dao.select(productionTime,shift,sn);
    }

    @Override
    public CheckTheProcess selectById(String id) {
        return dao.selectById(id);
    }
}
